package org.apache.ibatis.common.annotations;

import org.apache.ibatis.common.type.JdbcType;
import org.apache.ibatis.common.type.TypeHandler;

import java.lang.annotation.*;

/**
 * @Name TypeDiscriminator
 * @Description: [配置] 类型鉴别器
 * @Version v1.0.0
 * @Author: lichao
 * @Date: 2024-05-09 15:14:33
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface TypeDiscriminator {
    String column();

    Class<?> javaType() default void.class;

    JdbcType jdbcType() default JdbcType.UNDEFINED;

    Class<? extends TypeHandler> typeHandler() default UnknownTypeHandler.class;

    Case[] cases();
}
